home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Music⁄Sounds / BeepSay 1.0.1 / Resident.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-22  |  1.7 KB  |  61 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2. **
  3. **  Folder Name:    BS
  4. **     File Name:    Resident.h
  5. **
  6. **   Copyright:    © 1993 by Siren Enterprises, all rights reserved.
  7. **
  8. **   Description:    Include file for resident code
  9. **
  10. *******************************************************************************
  11. **                       A U T H O R   I D E N T I T Y
  12. *******************************************************************************
  13. **
  14. **    Initials    Name
  15. **    --------    -----------------------------------------------
  16. **    kw            Ken Wieschhoff
  17. **
  18. *******************************************************************************
  19. **                      R E V I S I O N   H I S T O R Y
  20. *******************************************************************************
  21. **
  22. **      Date        Time    Author    Description
  23. **    --------    -----    ------    ---------------------------------------------
  24. **    06/22/93    15:15    kw        1+ Add animate lips option
  25. **    05/17/93    17:34    kw        Original version
  26. **
  27. ******************************************************************************/
  28. #ifndef __Resident__
  29. #define    __Resident__
  30. #include <speech.h>
  31.  
  32. //•• Structs and defines
  33. #define    kCurrentVersion                0x0100
  34.  
  35. struct Preferences {
  36.     Boolean            on_off;
  37.     Boolean            iconAtStartup;
  38.     Boolean            onlyPlayOne;
  39.     Boolean            animate;
  40.     VoiceSpec        theVoice;
  41.     Str255            theText;
  42.     Fixed            theRate;
  43.     Fixed            thePitch;
  44. };
  45.  
  46. typedef struct Preferences Preferences;
  47. typedef Preferences *PreferencesPtr, **PreferencesHdl;
  48.  
  49. pascal OSErr InstallTrap( void);
  50. TrapType GetTrapType(short theTrap);
  51. pascal long *OldSysBeep(void);
  52. pascal long *OldA5(void);
  53. pascal void CallOldSysBeep(duration);
  54.  
  55. /* External prototypes */
  56. extern long A5Size(void);
  57. extern void A5Init(Ptr);
  58. pascal long GetA5();
  59.  
  60.  
  61. #endif